Optimal. Leaf size=62 \[ -\frac {3 \sqrt {1-a^2 x^2}}{2 a}-\frac {\left (1-a^2 x^2\right )^{3/2}}{2 a (1-a x)}+\frac {3 \sin ^{-1}(a x)}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {809, 679, 222}
\begin {gather*} -\frac {\left (1-a^2 x^2\right )^{3/2}}{2 a (1-a x)}-\frac {3 \sqrt {1-a^2 x^2}}{2 a}+\frac {3 \text {ArcSin}(a x)}{2 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 679
Rule 809
Rubi steps
\begin {align*} \int \frac {(1+a x) \sqrt {1-a^2 x^2}}{1-a x} \, dx &=-\frac {\left (1-a^2 x^2\right )^{3/2}}{2 a (1-a x)}+\frac {3}{2} \int \frac {\sqrt {1-a^2 x^2}}{1-a x} \, dx\\ &=-\frac {3 \sqrt {1-a^2 x^2}}{2 a}-\frac {\left (1-a^2 x^2\right )^{3/2}}{2 a (1-a x)}+\frac {3}{2} \int \frac {1}{\sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {3 \sqrt {1-a^2 x^2}}{2 a}-\frac {\left (1-a^2 x^2\right )^{3/2}}{2 a (1-a x)}+\frac {3 \sin ^{-1}(a x)}{2 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 69, normalized size = 1.11 \begin {gather*} \frac {(-4-a x) \sqrt {1-a^2 x^2}}{2 a}-\frac {3 \log \left (-\sqrt {-a^2} x+\sqrt {1-a^2 x^2}\right )}{2 \sqrt {-a^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(119\) vs.
\(2(52)=104\).
time = 0.16, size = 120, normalized size = 1.94
method | result | size |
risch | \(\frac {\left (a x +4\right ) \left (a^{2} x^{2}-1\right )}{2 a \sqrt {-a^{2} x^{2}+1}}+\frac {3 \arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} x^{2}+1}}\right )}{2 \sqrt {a^{2}}}\) | \(60\) |
default | \(-\frac {x \sqrt {-a^{2} x^{2}+1}}{2}-\frac {\arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} x^{2}+1}}\right )}{2 \sqrt {a^{2}}}-\frac {2 \left (\sqrt {-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )}-\frac {a \arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )}}\right )}{\sqrt {a^{2}}}\right )}{a}\) | \(120\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 42, normalized size = 0.68 \begin {gather*} -\frac {1}{2} \, \sqrt {-a^{2} x^{2} + 1} x + \frac {3 \, \arcsin \left (a x\right )}{2 \, a} - \frac {2 \, \sqrt {-a^{2} x^{2} + 1}}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.10, size = 48, normalized size = 0.77 \begin {gather*} -\frac {\sqrt {-a^{2} x^{2} + 1} {\left (a x + 4\right )} + 6 \, \arctan \left (\frac {\sqrt {-a^{2} x^{2} + 1} - 1}{a x}\right )}{2 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 2.99, size = 76, normalized size = 1.23 \begin {gather*} - \begin {cases} - \frac {- \sqrt {- a^{2} x^{2} + 1} + \operatorname {asin}{\left (a x \right )}}{a} & \text {for}\: a x > -1 \wedge a x < 1 \end {cases} - \begin {cases} - \frac {- \frac {a x \sqrt {- a^{2} x^{2} + 1}}{2} - \sqrt {- a^{2} x^{2} + 1} + \frac {\operatorname {asin}{\left (a x \right )}}{2}}{a} & \text {for}\: a x > -1 \wedge a x < 1 \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.16, size = 34, normalized size = 0.55 \begin {gather*} -\frac {1}{2} \, \sqrt {-a^{2} x^{2} + 1} {\left (x + \frac {4}{a}\right )} + \frac {3 \, \arcsin \left (a x\right ) \mathrm {sgn}\left (a\right )}{2 \, {\left | a \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.15, size = 55, normalized size = 0.89 \begin {gather*} \frac {\frac {3\,\mathrm {asinh}\left (x\,\sqrt {-a^2}\right )}{2}+\sqrt {1-a^2\,x^2}\,\left (\frac {2\,a}{\sqrt {-a^2}}-\frac {x\,\sqrt {-a^2}}{2}\right )}{\sqrt {-a^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________